<?php
//
//-------------------------------------------------
// | CreateTime: 2020/8/27 16:09
//+------------------------------------------------
// | Author: chenxueyuan
//+------------------------------------------------
// | Describe: ...
//+------------------------------------------------

namespace app\admin\validate;


use think\Validate;

class AdminUpd extends Validate
{
    protected $rule =   [

        'password_new'  => 'require|max:12|min:6|confirm:password_new_confirm',
        'password_new_confirm'  => 'require|max:12|min:6',


    ];

    protected $message  =   [
        'password_new.require'  => '密码不能为空',
        'password_new.max'      => '密码不能大于15',
        'password_new.min'      => '密码不能不能小于4',
        'password_new.confirm'      => '密码不一致',

        'password_new_confirm.require'  => '密码不能为空',
        'password_new_confirm.max'      => '密码不能大于15',
        'password_new_confirm.min'      => '密码不能不能小于4',


    ];
}